<template>
  <div class="hello">
    <Header> </Header>
    <Footer> </Footer>

  </div>
</template>

<script>


export default {
  name: '',
  components : {

  },
  data () {
    return {
      email: '',
      v_code: '',
      v_code_img:DocConfig.server+'/api/common/verify'
    }

  },
  methods: {
      onSubmit() {
          //this.$message.success(this.username);
          var that = this ;
          var url = DocConfig.server+'/api/user/resetPasswordEmail';

          var params = new URLSearchParams();
          params.append('email', this.email);
          params.append('v_code', this.v_code);

          that.axios.post(url, params)
            .then(function (response) {
              if (response.data.error_code === 0 ) {
                that.$alert("已成功发送重置密码邮件到你的邮箱中。请登录并查看邮件");
              }else{
                that.$alert(response.data.error_message);
              }

            });
      },
      change_v_code_img(){
        var rand = '&rand='+Math.random();
        this.v_code_img += rand ;
      }
  },
  mounted() {
  },
  beforeDestroy(){
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

.center-card a {
  font-size: 12px;
}

.center-card{
  text-align: center;
}

.v_code_img{
  margin-top: 20px;
}
</style>
